import request from "@/utils/request";

/**
 * 游戏商品
 */
export default {

  //获取游戏信息
  getGameGoodsInfoList(params) {
    return request({
      url: '/gmmallproduct/goods/list',
      method: 'get',
      params: params
    })
  },

  //添加游戏信息
  addGameGoodsInfo(goodsVo) {
    return request({
      url: '/gmmallproduct/goods/save',
      method: 'post',
      data: goodsVo
    })
  },

  //获取下架游戏商品
  getOffShelfGameInfo(params) {
    return request({
      url: '/gmmallproduct/goods/offshelf',
      method: 'get',
      params: params
    })
  },

  //修改游戏上下架状态
  updateGameShelfInfo(gameVo) {
    return request({
      url: '/gmmallproduct/goods/editGameShelf',
      method: 'put',
      data: gameVo
    })
  }

}
